package com.cyxy.ojbackendmodel.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@TableName(value = "question_submit")
@Data
//题目提交
public class QuestionSubmit implements Serializable {
    //id
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    // 编程语言
    private String language;

    // 用户代码
    private String code;

    //判题信息（json 对象）
    private String judgeInfo;

    //判题状态（0 - 待判题、1 - 判题中、2 - 成功、3 - 失败）
    private Integer status;

    //题目 id
    private Long questionId;

    // 创建用户 id
    private Long userId;

    //创建时间
    private Date createTime;

    //更新时间
    private Date updateTime;

    //是否删除
    @TableLogic
    private Integer isDelete;

    //唯一标识
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}